﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Blog.Models.Entities;
using MvcEngine.Core.Validation;
using MvcEngine.Mvc.UI;

namespace MvcEngine.Blog.Models.Entities
{
    public class BlogCategory
    {
        public Guid Id { get; set; }

        [LengthValidator("$LengthValidator", 50)]
        [RequiredFieldValidator("$RequiredValidator")]
        public string Name { get; set; }

        public Guid? ParentId { get; set; }

        public Guid BlogId { get; set; }

        public DateTime CreatedDate { get; set; }

        public DateTime ModifiedDate { get; set; }

        [LengthValidator("$LengthValidator", 256)]
        public string Slug { get; set; }
    }
}
